package org.linlinjava.litemall.web.vo.order;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.linlinjava.litemall.db.config.CurrencyDeserializer;
import java.math.BigDecimal;

@Data
public class OrderFormulaSpecificationsMaterialVO {

    @ApiModelProperty(value = "配方id")
    private Integer formulaId;

    @ApiModelProperty(value = "原料")
    private Integer formulaSpecificationsDataProportioningId;

    ///@ApiModelProperty(value = "配方原料id")
    //private Integer formulaMaterialId;

    private BigDecimal price;
    private BigDecimal consumePrice;

    @ApiModelProperty(value = "原料id")
    private Integer materialId;

    @ApiModelProperty(value = "配方原料名称")
    private String materialName;

    @ApiModelProperty(value = "制作单位")
    private String makeUnit;

    @ApiModelProperty(value = "原料类型")
    private Integer materialType;

    @ApiModelProperty(value = "额外收费")
    @JsonDeserialize(using = CurrencyDeserializer.class)
    private BigDecimal surcharge;

    @ApiModelProperty(value = "规格剂量")
    private Double specificationsDose;

    @ApiModelProperty(value = "数量")
    private Integer quantity;

    @ApiModelProperty(value = "单位")
    private String unit;

    @ApiModelProperty(value = "消耗系数")
    private BigDecimal consumeSystem;

    @ApiModelProperty(value = "是否选中")
    private Boolean isDefault;

}
